#!/bin/bash

echo "=== 检查系统状态 ==="

source /opt/ros/humble/setup.bash

echo "--- ROS 2 节点列表 ---"
ros2 node list

echo "
--- ROS 2 话题列表 ---"
ros2 topic list